// Decompiled by:       Fernflower v0.6
// Date:                28.11.2010 03:55:55
// Copyright:           2008-2009, Stiver
// Home page:           http://www.reversed-java.com

import java.awt.Component;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.io.File;
import javax.swing.ButtonGroup;
import javax.swing.DefaultComboBoxModel;
import javax.swing.DefaultListModel;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JSlider;
import javax.swing.JSpinner;
import javax.swing.JTabbedPane;
import javax.swing.JTextField;
import javax.swing.SpinnerNumberModel;
import javax.swing.GroupLayout.Alignment;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.UIManager;

public class GUI extends JFrame {

   private gi BASELINE;
   private ItemDeleter D = null;
   private ItemSpawner F = null;
   private MCThread KKLI = null;
   private ArrayList LEADING = new ArrayList();
   private ArrayList RELATED = new ArrayList();
   private ArrayList TRAILING = new ArrayList();
   private ArrayList UNRELATED = new ArrayList();
   private ArrayList aB = new ArrayList();
   private final int add = -32767;
   private DefaultListModel addActionListener;
   private DefaultListModel addComponent;
   String[] addContainerGap = null;
   private JComboBox addElement;
   private ButtonGroup addGap;
   private ButtonGroup addGroup;
   private JRadioButton addKeyListener;
   private JButton addMouseListener;
   private JRadioButton addPreferredGap;
   private JCheckBox addTab;
   private JCheckBox append;
   private JButton as;
   private JCheckBox at;
   private JCheckBox au;
   private JCheckBox av;
   private JSpinner aw;
   private JList ax;
   private JTextField c;
   private JButton charAt;
   private JLabel clear;
   private JLabel compile;
   private JLabel createParallelGroup;
   private JLabel createSequentialGroup;
   private JLabel e;
   private JLabel equals;
   private JLabel exit;
   private JLabel find;
   private JLabel g;
   private JLabel get;
   private JPanel getAccessibleContext;
   private JRadioButton getSelectedIndex;
   private JScrollPane getText;
   private JScrollPane getValue;
   private JSlider hasNext;
   private JTabbedPane isSelected;
   private JRadioButton iterator;
   private JRadioButton length;
   private JRadioButton matcher;
   private JRadioButton next;
   private JPanel parseInt;
   private JCheckBox printStackTrace;
   private JButton setAccessibleName;
   private JRadioButton setEnabled;
   private JButton setFont;
   private JButton setHorizontalGroup;
   private JPanel setLayout;
   private JButton setModel;
   private JList setSelected;
   private JTextField setSelectionMode;
   private JComboBox setText;
   private JCheckBox setVerifyInputWhenFocusTarget;
   public JLabel I;
   private JRadioButton setVerticalGroup;


   public GUI(gi var1) {
      this.D();
      this.addContainerGap = new String[this.LEADING.size()];
      this.addActionListener = new DefaultListModel();
      this.addComponent = new DefaultListModel();
      Object var2 = null;
      if(this.BASELINE == null) {
         if(var1 == null) {
            JOptionPane.showMessageDialog((Component)null, "An error has occured. An update is needed or Minecraft servers are down.", "MCCheat", 2);
            System.exit(0);
         }

         this.BASELINE = var1;
      }

      if(this.D == null) {
         this.D = new ItemDeleter(this.BASELINE);
      }

      if(this.F == null) {
         this.F = new ItemSpawner(this.BASELINE);
      }

      if(this.KKLI == null) {
         this.KKLI = new MCThread(this.BASELINE);
         this.KKLI.I();
      }

      Iterator var3 = this.LEADING.iterator();

      while(var3.hasNext()) {
         Item var4 = (Item)var3.next();
         this.addComponent.addElement(var4.I());
         this.RELATED.add(var4);
      }

      this.F();
   }

   private boolean BASELINE() {
      return this.BASELINE.e != null && this.BASELINE.g != null && this.BASELINE.g.e != null;
   }

   private void D() {
      this.LEADING.add(new Item("Stone", 1, Type.I));
      this.LEADING.add(new Item("Grass", 2, Type.I));
      this.LEADING.add(new Item("Dirt", 3, Type.I));
      this.LEADING.add(new Item("Cobblestone", 4, Type.I));
      this.LEADING.add(new Item("Wood", 5, Type.I));
      this.LEADING.add(new Item("Sapling", 6, Type.I));
      this.LEADING.add(new Item("Bedrock (Adminium)", 7, Type.I));
      this.LEADING.add(new Item("Water", 8, Type.I));
      this.LEADING.add(new Item("Still Water", 9, Type.I));
      this.LEADING.add(new Item("Lava", 10, Type.I));
      this.LEADING.add(new Item("Still Lava", 11, Type.I));
      this.LEADING.add(new Item("Sand", 12, Type.I));
      this.LEADING.add(new Item("Gravel", 13, Type.I));
      this.LEADING.add(new Item("Gold Ore", 14, Type.I));
      this.LEADING.add(new Item("Iron Ore", 15, Type.I));
      this.LEADING.add(new Item("Coal Ore", 16, Type.I));
      this.LEADING.add(new Item("Tree", 17, Type.I));
      this.LEADING.add(new Item("Leaves", 18, Type.I));
      this.LEADING.add(new Item("Sponge", 19, Type.I));
      this.LEADING.add(new Item("Glass", 20, Type.I));
      this.LEADING.add(new Item("Cloth", 35, Type.I));
      this.LEADING.add(new Item("Yellow Flower", 37, Type.I));
      this.LEADING.add(new Item("Red Flower", 38, Type.I));
      this.LEADING.add(new Item("Brown Mushroom", 39, Type.I));
      this.LEADING.add(new Item("Red Mushroom", 40, Type.I));
      this.LEADING.add(new Item("Gold Block", 41, Type.I));
      this.LEADING.add(new Item("Iron Block", 42, Type.I));
      this.LEADING.add(new Item("Double Stair", 43, Type.I));
      this.LEADING.add(new Item("Single Stair", 44, Type.I));
      this.LEADING.add(new Item("Brick", 45, Type.I));
      this.LEADING.add(new Item("TNT", 46, Type.I));
      this.LEADING.add(new Item("Bookshelf", 47, Type.I));
      this.LEADING.add(new Item("Mossy Cobblestone", 48, Type.I));
      this.LEADING.add(new Item("Obsidian", 49, Type.I));
      this.LEADING.add(new Item("Torch", 50, Type.I));
      this.LEADING.add(new Item("Fire", 51, Type.I));
      this.LEADING.add(new Item("Mob Spawner", 52, Type.I));
      this.LEADING.add(new Item("Wood Stairs", 53, Type.I));
      this.LEADING.add(new Item("Chest", 54, Type.I));
      this.LEADING.add(new Item("Redstone Dust", 55, Type.I));
      this.LEADING.add(new Item("Diamond Ore", 56, Type.I));
      this.LEADING.add(new Item("Diamond Block", 57, Type.I));
      this.LEADING.add(new Item("Workbench", 58, Type.I));
      this.LEADING.add(new Item("Crop", 59, Type.I));
      this.LEADING.add(new Item("Soil", 60, Type.I));
      this.LEADING.add(new Item("Furnace", 61, Type.I));
      this.LEADING.add(new Item("Lit Furnace", 62, Type.I));
      this.LEADING.add(new Item("Sign Block", 63, Type.I));
      this.LEADING.add(new Item("Wood Door Block", 64, Type.I));
      this.LEADING.add(new Item("Ladder", 65, Type.I));
      this.LEADING.add(new Item("Rails", 66, Type.I));
      this.LEADING.add(new Item("Cobblestone Stairs", 67, Type.I));
      this.LEADING.add(new Item("Sign Block Top", 68, Type.I));
      this.LEADING.add(new Item("Lever", 69, Type.I));
      this.LEADING.add(new Item("Rock Plate", 70, Type.I));
      this.LEADING.add(new Item("Iron Door Block", 71, Type.I));
      this.LEADING.add(new Item("Wood Plate", 72, Type.I));
      this.LEADING.add(new Item("Red Stone Ore (1)", 73, Type.I));
      this.LEADING.add(new Item("Red Stone Ore (2)", 74, Type.I));
      this.LEADING.add(new Item("Red Stone Torch (Off)", 75, Type.I));
      this.LEADING.add(new Item("Red Stone Torch (On)", 76, Type.I));
      this.LEADING.add(new Item("Button", 77, Type.I));
      this.LEADING.add(new Item("Snow", 78, Type.I));
      this.LEADING.add(new Item("Ice", 79, Type.I));
      this.LEADING.add(new Item("Snow Block", 80, Type.I));
      this.LEADING.add(new Item("Cactus", 81, Type.I));
      this.LEADING.add(new Item("Clay Block", 82, Type.I));
      this.LEADING.add(new Item("Reed Block", 83, Type.I));
      this.LEADING.add(new Item("Juke Box", 84, Type.I));
      this.LEADING.add(new Item("Wooden Fence", 85, Type.I));
      this.LEADING.add(new Item("Pumpkin Helmet", 86, Type.Z));
      this.LEADING.add(new Item("Hell Stone", 87, Type.I));
      this.LEADING.add(new Item("Hell Dirt", 88, Type.I));
      this.LEADING.add(new Item("Hell Light", 89, Type.I));
      this.LEADING.add(new Item("Portal", 90, Type.I));
      this.LEADING.add(new Item("Pumpkin", 91, Type.I));
      this.LEADING.add(new Item("Iron Shovel", 256, Type.Z));
      this.LEADING.add(new Item("Iron Pickaxe", 257, Type.Z));
      this.LEADING.add(new Item("Iron Axe", 258, Type.Z));
      this.LEADING.add(new Item("Flint And Steel", 259, Type.Z));
      this.LEADING.add(new Item("Apple", 260, Type.I));
      this.LEADING.add(new Item("Bow", 261, Type.I));
      this.LEADING.add(new Item("Arrow", 262, Type.I));
      this.LEADING.add(new Item("Coal", 263, Type.I));
      this.LEADING.add(new Item("Diamond", 264, Type.I));
      this.LEADING.add(new Item("Iron Bar", 265, Type.I));
      this.LEADING.add(new Item("Gold Bar", 266, Type.I));
      this.LEADING.add(new Item("Iron Sword", 267, Type.Z));
      this.LEADING.add(new Item("Wood Sword", 268, Type.Z));
      this.LEADING.add(new Item("Wood Shovel", 269, Type.Z));
      this.LEADING.add(new Item("Wood Pickaxe", 270, Type.Z));
      this.LEADING.add(new Item("Wood Axe", 271, Type.Z));
      this.LEADING.add(new Item("Stone Sword", 272, Type.Z));
      this.LEADING.add(new Item("Stone Shovel", 273, Type.Z));
      this.LEADING.add(new Item("Stone Pickaxe", 274, Type.Z));
      this.LEADING.add(new Item("Stone Axe", 275, Type.Z));
      this.LEADING.add(new Item("Diamond Sword", 276, Type.Z));
      this.LEADING.add(new Item("Diamond Shovel", 277, Type.Z));
      this.LEADING.add(new Item("Diamond Pickaxe", 278, Type.Z));
      this.LEADING.add(new Item("Diamond Axe", 279, Type.Z));
      this.LEADING.add(new Item("Stick", 280, Type.I));
      this.LEADING.add(new Item("Bowl", 281, Type.I));
      this.LEADING.add(new Item("Bowl With Soup", 282, Type.I));
      this.LEADING.add(new Item("Gold Sword", 283, Type.Z));
      this.LEADING.add(new Item("Gold Shovel", 284, Type.Z));
      this.LEADING.add(new Item("Gold Pickaxe", 285, Type.Z));
      this.LEADING.add(new Item("Gold Axe", 286, Type.Z));
      this.LEADING.add(new Item("String", 287, Type.I));
      this.LEADING.add(new Item("Feather", 288, Type.I));
      this.LEADING.add(new Item("Gunpowder", 289, Type.I));
      this.LEADING.add(new Item("Wood Hoe", 290, Type.Z));
      this.LEADING.add(new Item("Stone Hoe", 291, Type.Z));
      this.LEADING.add(new Item("Iron Hoe", 292, Type.Z));
      this.LEADING.add(new Item("Diamond Hoe", 293, Type.Z));
      this.LEADING.add(new Item("Gold Hoe", 294, Type.Z));
      this.LEADING.add(new Item("Seeds", 295, Type.I));
      this.LEADING.add(new Item("Wheat", 296, Type.I));
      this.LEADING.add(new Item("Bread", 297, Type.I));
      this.LEADING.add(new Item("Leather Helmet", 298, Type.Z));
      this.LEADING.add(new Item("Leather Chestplate", 299, Type.Z));
      this.LEADING.add(new Item("Leather Pants", 300, Type.Z));
      this.LEADING.add(new Item("Leather Boots", 301, Type.Z));
      this.LEADING.add(new Item("Chainmail Helmet", 302, Type.Z));
      this.LEADING.add(new Item("Chainmail Chestplate", 303, Type.Z));
      this.LEADING.add(new Item("Chainmail Pants", 304, Type.Z));
      this.LEADING.add(new Item("Chainmail Boots", 305, Type.Z));
      this.LEADING.add(new Item("Iron Helmet", 306, Type.Z));
      this.LEADING.add(new Item("Iron Chestplate", 307, Type.Z));
      this.LEADING.add(new Item("Iron Pants", 308, Type.Z));
      this.LEADING.add(new Item("Iron Boots", 309, Type.Z));
      this.LEADING.add(new Item("Diamond Helmet", 310, Type.Z));
      this.LEADING.add(new Item("Diamond Chestplate", 311, Type.Z));
      this.LEADING.add(new Item("Diamond Pants", 312, Type.Z));
      this.LEADING.add(new Item("Diamond Boots", 313, Type.Z));
      this.LEADING.add(new Item("Gold Helmet", 314, Type.Z));
      this.LEADING.add(new Item("Gold Chestplate", 315, Type.Z));
      this.LEADING.add(new Item("Gold Pants", 316, Type.Z));
      this.LEADING.add(new Item("Gold Boots", 317, Type.Z));
      this.LEADING.add(new Item("Flint", 318, Type.I));
      this.LEADING.add(new Item("Meat", 319, Type.I));
      this.LEADING.add(new Item("Cooked Meat", 320, Type.I));
      this.LEADING.add(new Item("Painting", 321, Type.I));
      this.LEADING.add(new Item("Golden Apple", 322, Type.I));
      this.LEADING.add(new Item("Sign", 323, Type.I));
      this.LEADING.add(new Item("Wood Door", 324, Type.I));
      this.LEADING.add(new Item("Bucket", 325, Type.I));
      this.LEADING.add(new Item("Water Bucket", 326, Type.I));
      this.LEADING.add(new Item("Lava Bucket", 327, Type.I));
      this.LEADING.add(new Item("Minecart", 328, Type.I));
      this.LEADING.add(new Item("Saddle", 329, Type.I));
      this.LEADING.add(new Item("Iron Door", 330, Type.I));
      this.LEADING.add(new Item("Red Stone Dust", 331, Type.I));
      this.LEADING.add(new Item("Snowball", 332, Type.I));
      this.LEADING.add(new Item("Boat", 333, Type.I));
      this.LEADING.add(new Item("Leather", 334, Type.I));
      this.LEADING.add(new Item("Milk Bucket", 335, Type.I));
      this.LEADING.add(new Item("Brick", 336, Type.I));
      this.LEADING.add(new Item("Clay", 337, Type.I));
      this.LEADING.add(new Item("Reed", 338, Type.I));
      this.LEADING.add(new Item("Paper", 339, Type.I));
      this.LEADING.add(new Item("Book", 340, Type.I));
      this.LEADING.add(new Item("Slime Orb", 341, Type.I));
      this.LEADING.add(new Item("Storage Minecart", 342, Type.I));
      this.LEADING.add(new Item("Powered Minecart", 343, Type.I));
      this.LEADING.add(new Item("Egg", 344, Type.I));
      this.LEADING.add(new Item("Compass", 345, Type.I));
      this.LEADING.add(new Item("Fishing Rod", 346, Type.I));
      this.LEADING.add(new Item("Watch", 347, Type.I));
      this.LEADING.add(new Item("Gold Dust", 348, Type.I));
      this.LEADING.add(new Item("Fish", 349, Type.I));
      this.LEADING.add(new Item("Cooked Fish", 350, Type.I));
      this.LEADING.add(new Item("Gold Record", 2256, Type.I));
      this.LEADING.add(new Item("Green Record", 2257, Type.I));
      this.TRAILING.add(new ItemSet("Wood", new int[]{269, 270, 271, 290}));
      this.TRAILING.add(new ItemSet("Gold", new int[]{284, 285, 286, 294}));
      this.TRAILING.add(new ItemSet("Stone", new int[]{273, 274, 275, 291}));
      this.TRAILING.add(new ItemSet("Iron", new int[]{256, 257, 258, 292}));
      this.TRAILING.add(new ItemSet("Diamond", new int[]{277, 278, 279, 293}));
      this.UNRELATED.add(new ItemSet("Leather", new int[]{298, 299, 300, 301}));
      this.UNRELATED.add(new ItemSet("Chainmail", new int[]{302, 303, 304, 305}));
      this.UNRELATED.add(new ItemSet("Iron", new int[]{306, 307, 308, 309}));
      this.UNRELATED.add(new ItemSet("Gold", new int[]{314, 315, 316, 317}));
      this.UNRELATED.add(new ItemSet("Diamond", new int[]{310, 311, 312, 313}));
   }

   private void F() {
      this.addGap = new ButtonGroup();
      this.charAt = new JButton();
      this.getSelectedIndex = new JRadioButton();
      this.addGroup = new ButtonGroup();
      this.hasNext = new JSlider();
      this.e = new JLabel();
      this.equals = new JLabel();
      this.createSequentialGroup = new JLabel();
      this.as = new JButton();
      this.find = new JLabel();
      this.I = new JLabel();
      this.isSelected = new JTabbedPane();
      this.parseInt = new JPanel();
      this.addTab = new JCheckBox();
      this.au = new JCheckBox();
      this.printStackTrace = new JCheckBox();
      this.append = new JCheckBox();
      this.addKeyListener = new JRadioButton();
      this.iterator = new JRadioButton();
      this.matcher = new JRadioButton();
      this.at = new JCheckBox();
      this.next = new JRadioButton();
      this.setEnabled = new JRadioButton();
      this.addPreferredGap = new JRadioButton();
      this.setVerticalGroup = new JRadioButton();
      this.length = new JRadioButton();
      this.compile = new JLabel();
      this.get = new JLabel();
      this.setLayout = new JPanel();
      this.av = new JCheckBox();
      SpinnerNumberModel var1 = new SpinnerNumberModel(1, 1, 64, 1);
      this.aw = new JSpinner(var1);
      this.setVerifyInputWhenFocusTarget = new JCheckBox();
      this.setText = new JComboBox();
      this.createParallelGroup = new JLabel();
      this.setHorizontalGroup = new JButton();
      this.exit = new JLabel();
      this.addElement = new JComboBox();
      this.setFont = new JButton();
      this.addMouseListener = new JButton();
      this.c = new JTextField();
      this.getValue = new JScrollPane();
      this.ax = new JList();
      this.clear = new JLabel();
      this.getAccessibleContext = new JPanel();
      this.g = new JLabel();
      this.setSelectionMode = new JTextField();
      this.setAccessibleName = new JButton();
      this.setModel = new JButton();
      this.getText = new JScrollPane();
      this.setSelected = new JList();
      this.charAt.setText("jButton1");
      this.getSelectedIndex.setText("jRadioButton1");
      this.setTitle("MCCheat");
      this.setAlwaysOnTop(true);
      this.setResizable(false);
      //this.e.setText("For updates and more information");
      this.e.setText("No idea who the original author was");
      //this.equals.setText("www.mccheat.net");
      this.equals.setText("but thanks for not obfuscating the code.");
      this.createSequentialGroup.setFont(new Font("Tahoma", 1, 11));
      this.createSequentialGroup.setText("MCCheat Version 2.0 by himom");
      this.as.setText("Hide");
      this.as.addActionListener(new GUI$1(this));
      //this.find.setText("People Using MCCheat:");
      //this.I.setText("0");
      this.addTab.setText("Fire Proof");
      this.addTab.addActionListener(new GUI$2(this));
      this.au.setText("Invincibility");
      this.au.addActionListener(new GUI$3(this));
      this.printStackTrace.setText("Oxygen");
      this.printStackTrace.addActionListener(new GUI$4(this));
      this.append.setText("Fly Mode");
      this.append.addActionListener(new GUI$5(this));
      this.addGap.add(this.addKeyListener);
      this.addKeyListener.setText("Day");
      this.addKeyListener.addActionListener(new GUI$6(this));
      this.addGap.add(this.iterator);
      this.iterator.setText("Night");
      this.iterator.addActionListener(new GUI$7(this));
      this.addGap.add(this.matcher);
      this.matcher.setSelected(true);
      this.matcher.setText("Normal");
      this.matcher.addActionListener(new GUI$8(this));
      this.at.setText("Hover Mode");
      this.at.addActionListener(new GUI$9(this));
      this.addGroup.add(this.next);
      this.next.setText("North");
      this.next.addActionListener(new GUI$10(this));
      this.addGroup.add(this.setEnabled);
      this.setEnabled.setText("South");
      this.setEnabled.addActionListener(new GUI$11(this));
      this.addGroup.add(this.addPreferredGap);
      this.addPreferredGap.setText("East");
      this.addPreferredGap.addActionListener(new GUI$12(this));
      this.addGroup.add(this.setVerticalGroup);
      this.setVerticalGroup.setText("West");
      this.setVerticalGroup.addActionListener(new GUI$13(this));
      this.addGroup.add(this.length);
      this.length.setSelected(true);
      this.length.setText("None");
      this.length.addActionListener(new GUI$14(this));
      this.get.setText("Movement Direction");
      GroupLayout var2 = new GroupLayout(this.parseInt);
      this.parseInt.setLayout(var2);
      var2.setHorizontalGroup(var2.createParallelGroup(Alignment.LEADING).addGroup(var2.createSequentialGroup().addContainerGap().addGroup(var2.createParallelGroup(Alignment.TRAILING, false).addComponent(this.get, Alignment.LEADING, -1, -1, 32767).addGroup(Alignment.LEADING, var2.createSequentialGroup().addGroup(var2.createParallelGroup(Alignment.LEADING).addComponent(this.length).addComponent(this.setVerticalGroup).addComponent(this.setEnabled).addComponent(this.addPreferredGap).addComponent(this.next)).addGap(35, 35, 35).addComponent(this.compile)).addGroup(Alignment.LEADING, var2.createSequentialGroup().addGroup(var2.createParallelGroup(Alignment.TRAILING, false).addComponent(this.append, Alignment.LEADING).addComponent(this.addTab, Alignment.LEADING).addComponent(this.printStackTrace, Alignment.LEADING).addComponent(this.au, Alignment.LEADING).addComponent(this.at, Alignment.LEADING, -1, -1, 32767)).addGap(18, 18, 18).addGroup(var2.createParallelGroup(Alignment.LEADING, false).addComponent(this.iterator, -1, -1, 32767).addComponent(this.matcher, -1, -1, 32767).addComponent(this.addKeyListener)))).addContainerGap(18, 32767)));
      var2.setVerticalGroup(var2.createParallelGroup(Alignment.LEADING).addGroup(var2.createSequentialGroup().addContainerGap().addGroup(var2.createParallelGroup(Alignment.LEADING).addGroup(var2.createSequentialGroup().addComponent(this.au).addPreferredGap(ComponentPlacement.RELATED).addComponent(this.printStackTrace).addPreferredGap(ComponentPlacement.RELATED).addComponent(this.addTab).addComponent(this.append).addPreferredGap(ComponentPlacement.RELATED).addComponent(this.at)).addGroup(var2.createSequentialGroup().addComponent(this.matcher).addPreferredGap(ComponentPlacement.RELATED).addComponent(this.addKeyListener).addPreferredGap(ComponentPlacement.RELATED).addComponent(this.iterator))).addGap(18, 18, 18).addComponent(this.get).addPreferredGap(ComponentPlacement.RELATED).addGroup(var2.createParallelGroup(Alignment.LEADING).addGroup(var2.createSequentialGroup().addGap(95, 95, 95).addComponent(this.compile)).addGroup(var2.createParallelGroup(Alignment.LEADING).addGroup(var2.createSequentialGroup().addGap(23, 23, 23).addComponent(this.next).addPreferredGap(ComponentPlacement.RELATED).addComponent(this.addPreferredGap).addPreferredGap(ComponentPlacement.RELATED).addComponent(this.setEnabled).addPreferredGap(ComponentPlacement.RELATED).addComponent(this.setVerticalGroup)).addGroup(Alignment.TRAILING, var2.createSequentialGroup().addComponent(this.length).addGap(92, 92, 92)))).addGap(167, 167, 167)));
      this.isSelected.addTab("Options", this.parseInt);
      this.av.setText("Spawn Invincible Items");
      this.aw.setEnabled(true);
      this.aw.setVerifyInputWhenFocusTarget(false);
      this.setVerifyInputWhenFocusTarget.setText("Spawn Unlimited Stacks");
      this.setVerifyInputWhenFocusTarget.addActionListener(new GUI$15(this));
      this.setText.setModel(new DefaultComboBoxModel(new String[]{"Wood", "Gold", "Stone", "Iron", "Diamond"}));
      this.createParallelGroup.setText("Tools");
      this.setHorizontalGroup.setText("Spawn");
      this.setHorizontalGroup.addActionListener(new GUI$16(this));
      this.exit.setText("Armor Set");
      this.addElement.setModel(new DefaultComboBoxModel(new String[]{"Leather", "Chainmail", "Iron", "Gold", "Diamond"}));
      this.setFont.setText("Spawn");
      this.setFont.addActionListener(new GUI$17(this));
      this.addMouseListener.setText("Delete All Items");
      this.addMouseListener.addActionListener(new GUI$18(this));
      this.c.addKeyListener(new GUI$19(this));
      this.ax.setSelectionMode(0);
      this.ax.setModel(this.addComponent);
      this.ax.addMouseListener(new GUI$20(this));
      this.getValue.setViewportView(this.ax);
      this.clear.setText("Item:");
      GroupLayout var3 = new GroupLayout(this.setLayout);
      this.setLayout.setLayout(var3);
      var3.setHorizontalGroup(var3.createParallelGroup(Alignment.LEADING).addGroup(var3.createSequentialGroup().addGroup(var3.createParallelGroup(Alignment.LEADING).addGroup(var3.createSequentialGroup().addGap(8, 8, 8).addGroup(var3.createParallelGroup(Alignment.LEADING).addComponent(this.setFont, -1, 170, 32767).addComponent(this.addMouseListener, -1, 170, 32767).addComponent(this.setHorizontalGroup, -1, 170, 32767).addGroup(var3.createSequentialGroup().addComponent(this.exit).addPreferredGap(ComponentPlacement.UNRELATED).addComponent(this.addElement, 0, 112, 32767)).addGroup(var3.createSequentialGroup().addComponent(this.createParallelGroup).addGap(18, 18, 18).addComponent(this.setText, 0, 127, 32767)))).addGroup(var3.createSequentialGroup().addContainerGap().addGroup(var3.createParallelGroup(Alignment.LEADING).addComponent(this.getValue, -1, 168, 32767).addComponent(this.av).addGroup(var3.createSequentialGroup().addComponent(this.setVerifyInputWhenFocusTarget).addPreferredGap(ComponentPlacement.RELATED, -1, 32767).addComponent(this.aw, -2, -1, -2)).addGroup(var3.createSequentialGroup().addComponent(this.clear).addPreferredGap(ComponentPlacement.UNRELATED).addComponent(this.c, -1, 132, 32767))))).addContainerGap()));
      var3.setVerticalGroup(var3.createParallelGroup(Alignment.LEADING).addGroup(var3.createSequentialGroup().addContainerGap().addComponent(this.av).addGap(2, 2, 2).addGroup(var3.createParallelGroup(Alignment.BASELINE).addComponent(this.setVerifyInputWhenFocusTarget).addComponent(this.aw, -2, -1, -2)).addPreferredGap(ComponentPlacement.RELATED).addGroup(var3.createParallelGroup(Alignment.BASELINE).addComponent(this.c, -2, -1, -2).addComponent(this.clear)).addPreferredGap(ComponentPlacement.RELATED).addComponent(this.getValue, -1, 78, 32767).addPreferredGap(ComponentPlacement.RELATED).addGroup(var3.createParallelGroup(Alignment.BASELINE).addComponent(this.setText, -2, -1, -2).addComponent(this.createParallelGroup)).addPreferredGap(ComponentPlacement.RELATED).addComponent(this.setHorizontalGroup).addPreferredGap(ComponentPlacement.RELATED).addGroup(var3.createParallelGroup(Alignment.TRAILING).addComponent(this.exit).addComponent(this.addElement, -2, -1, -2)).addPreferredGap(ComponentPlacement.RELATED).addComponent(this.setFont).addGap(4, 4, 4).addComponent(this.addMouseListener).addContainerGap()));
      this.isSelected.addTab("Spawning", this.setLayout);
      this.g.setText("Teleport Name:");
      this.setAccessibleName.setText("Save Teleport");
      this.setAccessibleName.addActionListener(new GUI$21(this));
      this.setModel.setText("Teleport");
      this.setModel.addActionListener(new GUI$22(this));
      this.setSelected.setSelectionMode(0);
      this.setSelected.setModel(this.addActionListener);
      this.getText.setViewportView(this.setSelected);
      GroupLayout var4 = new GroupLayout(this.getAccessibleContext);
      this.getAccessibleContext.setLayout(var4);
      var4.setHorizontalGroup(var4.createParallelGroup(Alignment.LEADING).addGroup(Alignment.TRAILING, var4.createSequentialGroup().addContainerGap().addGroup(var4.createParallelGroup(Alignment.TRAILING).addComponent(this.getText, Alignment.LEADING, -1, 168, 32767).addComponent(this.setAccessibleName, Alignment.LEADING, -1, 168, 32767).addGroup(Alignment.LEADING, var4.createSequentialGroup().addComponent(this.g).addPreferredGap(ComponentPlacement.UNRELATED).addComponent(this.setSelectionMode, -1, 84, 32767)).addComponent(this.setModel, Alignment.LEADING, -1, 168, 32767)).addContainerGap()));
      var4.setVerticalGroup(var4.createParallelGroup(Alignment.LEADING).addGroup(var4.createSequentialGroup().addContainerGap().addGroup(var4.createParallelGroup(Alignment.BASELINE).addComponent(this.g).addComponent(this.setSelectionMode, -2, -1, -2)).addGap(18, 18, 18).addComponent(this.setAccessibleName).addPreferredGap(ComponentPlacement.RELATED).addComponent(this.getText, -1, 193, 32767).addPreferredGap(ComponentPlacement.RELATED).addComponent(this.setModel).addContainerGap()));
      this.isSelected.addTab("Teleporting", this.getAccessibleContext);
      GroupLayout var5 = new GroupLayout(this.getContentPane());
      this.getContentPane().setLayout(var5);
      var5.setHorizontalGroup(var5.createParallelGroup(Alignment.LEADING).addGroup(var5.createSequentialGroup().addGroup(var5.createParallelGroup(Alignment.LEADING).addGroup(var5.createSequentialGroup().addGap(62, 62, 62).addComponent(this.equals)).addGroup(var5.createSequentialGroup().addGap(25, 25, 25).addComponent(this.e)).addGroup(var5.createSequentialGroup().addContainerGap().addComponent(this.as, -1, 193, 32767)).addGroup(var5.createSequentialGroup().addGap(45, 45, 45).addComponent(this.find).addPreferredGap(ComponentPlacement.RELATED).addComponent(this.I, -2, 26, -2))).addContainerGap()).addGroup(Alignment.TRAILING, var5.createSequentialGroup().addContainerGap(49, 32767).addComponent(this.createSequentialGroup).addGap(49, 49, 49)).addGroup(var5.createSequentialGroup().addContainerGap().addComponent(this.isSelected, -1, 193, 32767).addContainerGap()));
      var5.setVerticalGroup(var5.createParallelGroup(Alignment.LEADING).addGroup(var5.createSequentialGroup().addContainerGap().addComponent(this.createSequentialGroup, -2, 14, -2).addPreferredGap(ComponentPlacement.RELATED).addComponent(this.as).addPreferredGap(ComponentPlacement.RELATED).addGroup(var5.createParallelGroup(Alignment.BASELINE).addComponent(this.I).addComponent(this.find)).addPreferredGap(ComponentPlacement.RELATED).addComponent(this.isSelected, -2, 339, -2).addPreferredGap(ComponentPlacement.RELATED, -1, 32767).addComponent(this.e).addPreferredGap(ComponentPlacement.RELATED).addComponent(this.equals).addContainerGap()));
      this.isSelected.getAccessibleContext().setAccessibleName("Options");
      this.pack();
   }

   private void KKLI(ActionEvent var1) {
      Main.I.setVisible(false);
      Main.Z.setVisible(true);
   }

   private void LEADING(ActionEvent var1) {
      this.KKLI.I(Direction.I);
   }

   private void RELATED(ActionEvent var1) {
      this.KKLI.I(Direction.D);
   }

   private void TRAILING(ActionEvent var1) {
      this.KKLI.I(Direction.C);
   }

   private void UNRELATED(ActionEvent var1) {
      this.KKLI.I(Direction.B);
   }

   private void aB(ActionEvent var1) {
      this.KKLI.I(Direction.Z);
   }

   private void add(ActionEvent var1) {
      if(this.at.isSelected()) {
         this.KKLI.D(true);
      } else {
         this.KKLI.D(false);
      }

   }

   private void addActionListener(ActionEvent var1) {
      this.KKLI.I(Status.C);
   }

   private void addComponent(ActionEvent var1) {
      this.KKLI.I(Status.Z);
   }

   private void addContainerGap(ActionEvent var1) {
      this.KKLI.I(Status.I);
   }

   private void addElement(ActionEvent var1) {
      if(this.append.isSelected()) {
         this.KKLI.B(true);
      } else {
         this.KKLI.B(false);
      }

   }

   private void addGap(ActionEvent var1) {
      if(this.printStackTrace.isSelected()) {
         this.KKLI.Z(true);
      } else {
         this.KKLI.Z(false);
      }

   }

   private void addGroup(ActionEvent var1) {
      if(this.au.isSelected()) {
         this.KKLI.I(true);
      } else {
         this.KKLI.I(false);
      }

   }

   private void addKeyListener(ActionEvent var1) {
      if(this.addTab.isSelected()) {
         this.KKLI.C(true);
      } else {
         this.KKLI.C(false);
      }

   }

   private void addMouseListener(ActionEvent var1) {
      if(this.setSelected.getSelectedIndex() >= 0) {
         Teleport var2 = (Teleport)this.aB.get(this.setSelected.getSelectedIndex());
         this.BASELINE.g.c(var2.I(), var2.Z(), var2.C(), this.BASELINE.g.aC, 0.0F);
         this.BASELINE.g.at = this.BASELINE.g.au = this.BASELINE.g.av = 0.0D;
      }

   }

   private void addPreferredGap(ActionEvent var1) {
      String var2 = this.setSelectionMode.getText().trim();
      if(var2 != null && !var2.equals("")) {
         var2 = aw(var2);
         this.aB.add(new Teleport(var2, this.BASELINE.g.aw, this.BASELINE.g.ax, this.BASELINE.g.ay));
         this.addActionListener.addElement(var2);
      } else {
         JOptionPane.showMessageDialog((Component)null, "Please enter a name for the teleport.");
      }
   }

   private void addTab(MouseEvent var1) {
      if(!this.BASELINE()) {
         JOptionPane.showMessageDialog((Component)null, "Please login to an SMP server or load Single Player first.");
      } else {
         int var2 = this.ax.getSelectedIndex();
         if(var2 >= 0) {
            short var3 = 0;
            Item var4 = (Item)this.RELATED.get(var2);
            if(var4.C() == Type.Z) {
               var3 = -32767;
            }

            int var5 = Integer.parseInt(this.aw.getValue().toString());
            if(var2 > -1) {
               try {
                  this.F.I(var4.Z(), this.av.isSelected()?var3:0, this.setVerifyInputWhenFocusTarget.isSelected()?-1:var5);
               } catch (Exception var7) {
                  JOptionPane.showMessageDialog((Component)null, "Please login to an SMP server or load Single Player first.");
               }
            } else {
               JOptionPane.showMessageDialog((Component)null, "Please select an Item Set to spawn.");
            }

         }
      }
   }

   private void append(KeyEvent var1) {
      String var2 = this.c.getText();
      this.addComponent.clear();
      this.RELATED.clear();
      if(var2 != null && !var2.equals("")) {
         Pattern var3 = Pattern.compile(var2, 2);
         Iterator var5 = this.LEADING.iterator();

         while(var5.hasNext()) {
            Item var6 = (Item)var5.next();
            Matcher var4 = var3.matcher(var6.I());
            if(var4.find()) {
               this.addComponent.addElement(var6.I());
               this.RELATED.add(var6);
            }
         }
      }

   }

   private void as(ActionEvent var1) {
      if(!this.BASELINE()) {
         JOptionPane.showMessageDialog((Component)null, "Please login to an SMP server or load Single Player first.");
      } else {
         try {
            this.D.I();
         } catch (Exception var3) {
            JOptionPane.showMessageDialog((Component)null, "Please login to an SMP server or load Single Player first.");
         }

      }
   }

   private void at(ActionEvent var1) {
      if(!this.BASELINE()) {
         JOptionPane.showMessageDialog((Component)null, "Please login to an SMP server or load Single Player first.");
      } else {
         int var2 = this.addElement.getSelectedIndex();
         ItemSet var3 = (ItemSet)this.UNRELATED.get(var2);
         int[] var4 = var3.I();
         if(var2 > -1) {
            try {
               for(int var5 = 0; var5 < var4.length; ++var5) {
                  this.F.I(var4[var5], this.av.isSelected()?-32767:0, 1, var5);
               }
            } catch (Exception var6) {
               JOptionPane.showMessageDialog((Component)null, "Please login to an SMP server or load Single Player first.");
               var6.printStackTrace();
            }
         } else {
            JOptionPane.showMessageDialog((Component)null, "Please select an Item Set to spawn.");
         }

      }
   }

   private void au(ActionEvent var1) {
      if(!this.BASELINE()) {
         JOptionPane.showMessageDialog((Component)null, "Please login to an SMP server or load Single Player first.");
      } else {
         int var2 = this.setText.getSelectedIndex();
         ItemSet var3 = (ItemSet)this.TRAILING.get(var2);
         int[] var4 = var3.I();
         if(var2 > -1) {
            try {
               for(int var5 = 0; var5 < var4.length; ++var5) {
                  this.F.I(var4[var5], this.av.isSelected()?-32767:0, 1);
               }
            } catch (Exception var6) {
               JOptionPane.showMessageDialog((Component)null, "Please login to an SMP server or load Single Player first.");
            }
         } else {
            JOptionPane.showMessageDialog((Component)null, "Please select an Item Set to spawn.");
         }

      }
   }

   private void av(ActionEvent var1) {
      if(this.setVerifyInputWhenFocusTarget.isSelected()) {
         this.aw.setEnabled(false);
      } else {
         this.aw.setEnabled(true);
      }

   }

   public static final String aw(String var0) {
      return var0.length() > 0?Character.toUpperCase(var0.charAt(0)) + var0.substring(1):var0;
   }

   // $FF: synthetic method
   static final void I(GUI var0, ActionEvent var1) {
      var0.KKLI(var1);
   }

   // $FF: synthetic method
   static final void Z(GUI var0, ActionEvent var1) {
      var0.addKeyListener(var1);
   }
   
   public static final boolean Z()
  {
    try
    {
      UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
      return true;
    }
    catch (Exception localException)
    {
      System.out.println("Okay, I won't have a native L&F.");
    }
    return false;
  }

   // $FF: synthetic method
   static final void C(GUI var0, ActionEvent var1) {
      var0.addGroup(var1);
   }

   // $FF: synthetic method
   static final void B(GUI var0, ActionEvent var1) {
      var0.addGap(var1);
   }

   // $FF: synthetic method
   static final void D(GUI var0, ActionEvent var1) {
      var0.addElement(var1);
   }

   // $FF: synthetic method
   static final void F(GUI var0, ActionEvent var1) {
      var0.addContainerGap(var1);
   }

   // $FF: synthetic method
   static final void J(GUI var0, ActionEvent var1) {
      var0.addComponent(var1);
   }

   // $FF: synthetic method
   static final void S(GUI var0, ActionEvent var1) {
      var0.addActionListener(var1);
   }

   // $FF: synthetic method
   static final void A(GUI var0, ActionEvent var1) {
      var0.add(var1);
   }

   // $FF: synthetic method
   static final void E(GUI var0, ActionEvent var1) {
      var0.aB(var1);
   }

   // $FF: synthetic method
   static final void G(GUI var0, ActionEvent var1) {
      var0.UNRELATED(var1);
   }

   // $FF: synthetic method
   static final void H(GUI var0, ActionEvent var1) {
      var0.TRAILING(var1);
   }

   // $FF: synthetic method
   static final void K(GUI var0, ActionEvent var1) {
      var0.RELATED(var1);
   }

   // $FF: synthetic method
   static final void L(GUI var0, ActionEvent var1) {
      var0.LEADING(var1);
   }

   // $FF: synthetic method
   static final void M(GUI var0, ActionEvent var1) {
      var0.av(var1);
   }

   // $FF: synthetic method
   static final void N(GUI var0, ActionEvent var1) {
      var0.au(var1);
   }

   // $FF: synthetic method
   static final void O(GUI var0, ActionEvent var1) {
      var0.at(var1);
   }

   // $FF: synthetic method
   static final void P(GUI var0, ActionEvent var1) {
      var0.as(var1);
   }

   // $FF: synthetic method
   static final void I(GUI var0, KeyEvent var1) {
      var0.append(var1);
   }
   
   public static final File I()
  {
    String str1 = System.getProperty("os.name", "").toLowerCase();
    String str2 = System.getProperty("user.home", ".");
    if (str1.contains("win"))
    {
      String str3 = System.getenv("APPDATA");
      if (str3 != null)
        return new File(str3, ".minecraft");
      return new File(str2, ".minecraft");
    }
    if (str1.contains("mac"))
      return new File(str2, "Library/Application Support/minecraft");
    return new File(str2, ".minecraft/");
  }

   // $FF: synthetic method
   static final void I(GUI var0, MouseEvent var1) {
      var0.addTab(var1);
   }

   // $FF: synthetic method
   static final void Q(GUI var0, ActionEvent var1) {
      var0.addPreferredGap(var1);
   }

   // $FF: synthetic method
   static final void R(GUI var0, ActionEvent var1) {
      var0.addMouseListener(var1);
   }
}
